package com.example.xiaomi.Model.entity;

import java.math.BigDecimal;

public class shoppingcartEntity {
    int uid;
    int cid;
    String gname;
    String dmail;
    BigDecimal gprice;
    int damount;
    BigDecimal totalcost;
    String ping;

    public String toString() {
        return "[" + uid +
                "," + cid +
                "," + gname +
                "," + gprice +
                "," + dmail +
                "," + damount +
                "," + totalcost +
                "," + ping +
                ']';
    }

    public shoppingcartEntity(int uid, int cid, String gname, String dmail, BigDecimal gprice, int damount, BigDecimal totalcost, String ping) {
        this.uid = uid;
        this.cid = cid;
        this.gname = gname;
        this.dmail = dmail;
        this.gprice = gprice;
        this.damount = damount;
        this.totalcost = totalcost;
        this.ping = ping;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getDmail() {
        return dmail;
    }

    public void setDmail(String dmail) {
        this.dmail = dmail;
    }

    public BigDecimal getGprice() {
        return gprice;
    }

    public void setGprice(BigDecimal gprice) {
        this.gprice = gprice;
    }

    public int getDamount() {
        return damount;
    }

    public void setDamount(int damount) {
        this.damount = damount;
    }

    public BigDecimal getTotalcost() {
        return totalcost;
    }

    public void setTotalcost(BigDecimal totalcost) {
        this.totalcost = totalcost;
    }

    public String getPing() {
        return ping;
    }

    public void setPing(String ping) {
        this.ping = ping;
    }
}
